home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1989 …il & Dave's Excellent CD / Excellent CD HFS.raw / Moof / Goodies / MPW Goodies / Interfaces / CIncludes / Notification.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-11-30  |  1.3 KB  |  57 lines  |  [TEXT/MPS ]

  1. /************************************************************
  2.  
  3. Created: Tuesday, October 4, 1988 at 7:03 PM
  4.     Notification.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.     Copyright Apple Computer, Inc.  1988
  9.     All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __NOTIFICATION__
  15. #define __NOTIFICATION__
  16.  
  17. #ifndef __TYPES__
  18. #include <Types.h>
  19. #endif
  20.  
  21. #ifndef __OSUTILS__
  22. #include <OSUtils.h>
  23. #endif
  24.  
  25. #define nmType 8
  26.  
  27. struct NMRec {
  28.     QElemPtr qLink;     /*next queue entry*/
  29.     short qType;        /*queue type -- ORD(nmType) = 8*/
  30.     short nmFlags;      /*reserved*/
  31.     long nmPrivate;     /*reserved*/
  32.     short nmReserved;   /*reserved*/
  33.     short nmMark;       /*item to mark in Apple menu*/
  34.     Handle nmSIcon;     /*handle to small icon*/
  35.     Handle nmSound;     /*handle to sound record*/
  36.     StringPtr nmStr;    /*string to appear in alert*/
  37.     ProcPtr nmResp;     /*pointer to response routine*/
  38.     long nmRefCon;      /*for application use*/
  39. };
  40.  
  41. #ifndef __cplusplus
  42. typedef struct NMRec NMRec;
  43. #endif
  44.  
  45. #ifdef __safe_link
  46. extern "C" {
  47. #endif
  48. pascal OSErr NMInstall(QElemPtr nmReqPtr)
  49.     = {0x205F,0xA05E,0x3E80}; 
  50. pascal OSErr NMRemove(QElemPtr nmReqPtr)
  51.     = {0x205F,0xA05F,0x3E80}; 
  52. #ifdef __safe_link
  53. }
  54. #endif
  55.  
  56. #endif
  57.